<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/public/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/public/css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form layui-col-lg-offset1 layui-col-lg10 lay-col-md12" id="editFormOrder">
    <input type="hidden" name="id" value="{{id}}"/>
    <input type="hidden" name="orderCode" value="{{orderCode}}" id="orderCode">
    <input type="hidden" name="states" id="states" value="{{states}}"/>
    <!--运输方式-->
    <input type="hidden" id="tranType" value="{{standby2}}"/>
    <div class="layui-col-md12">
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">订单日期：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input required" value="{{orderDate}}" readonly
                           name="orderDate"
                           id="orderDate"
                           placeholder="请输入选择">
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">业务类型：</label>
                <div class="layui-input-block">
                    <select id="businessTypes" lay-search="" class="required" lay-filter="businessTypes"
                            name="businessTypes">
                        <option value="{{businessTypes}}" selected>{{businessTypes}}</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">品名：</label>
                <div class="layui-input-block">
                    <input id="ofTheGoods" value="{{ofTheGoods}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">箱型：</label>
                <div class="layui-input-block">
                    <input id="aBox" value="{{aBox}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">箱号：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input required" value="{{cartonNo}}" name="cartonNo"
                           placeholder="请输入箱号">
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">发货单位：</label>
                <div class="layui-input-block">
                    <input id="deliveryUnit" value="{{deliveryUnit}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">装货地点：</label>
                <div class="layui-input-block">
                    <input id="standby1" value="{{standby1}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        {{if standby2 != 3}}
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">发出站：</label>
                <div class="layui-input-block">
                    <input id="aStation" value="{{aStation}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        {{/if}}
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label" id="arriveStationText">到站：</label>
                <div class="layui-input-block">
                    <input id="arriveStation" value="{{arriveStation}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">收货人：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input required" value="{{receivingUnit}}" name="receivingUnit"
                           placeholder="请输入">
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">结算人：</label>
                <div class="layui-input-block">
                    <input id="settlementPeople" value="{{settlementPeople}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">应收金额：</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input required" id="accountsReceivableAmount"
                           name="accountsReceivableAmount"
                           placeholder="请输入应收金额" value="{{accountsReceivableAmount}}">
                </div>
            </div>
        </div>
        <div class="layui-col-md4" style="height: 53px;">
            <div class="layui-form-item">
                <div class="check-two">
                    <input value="{{whetherSelfTransport}}" type="hidden" id="whetherSelfTransportValue"/>
                    {{if whetherSelfTransport== 1 }}
                    <input type="checkbox" lay-skin="primary" value="1" lay-filter="whetherSelfTransport"
                           name="whetherSelfTransport"
                           title="是否自运输"
                           checked
                    >
                    {{else}}
                    <input type="checkbox" lay-skin="primary" value="1" lay-filter="whetherSelfTransport"
                           name="whetherSelfTransport"
                           title="是否自运输"
                    >
                    {{/if}}
                    {{if isInvoice == 1}}
                    <input type="checkbox" lay-skin="primary" value="1" name="isInvoice"
                           title="是否需要发票"
                           checked
                    >
                    {{else}}
                    <input type="checkbox" lay-skin="primary" value="1" name="isInvoice"
                           title="是否需要发票"
                    >
                    {{/if}}
                </div>
            </div>
        </div>
        <div class="layui-col-md4 driver">
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: #009feb">*</span>司机：</label>
                <div class="layui-input-block">
                    <input id="driver" value="{{driver}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md4 licensePlate">
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: #009feb">*</span>车牌：</label>
                <div class="layui-input-block">
                    <input id="licensePlate" value="{{licensePlate}}"  class="layui-input"  autocomplete="off" placeholder="请选择" >
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="orderNote" id="orderNote">{{orderNote}}</textarea>
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">业务员：</label>
                <div class="layui-input-block" style="color:#009feb">
                    {{salesman}}
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">下单时间：</label>
                <div class="layui-input-block" style="color:#009feb">
                    {{placeOrderTime}}
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md12">
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">审核人：</label>
                <div class="layui-input-block" style="color:#009feb">

                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">审核时间：</label>
                <div class="layui-input-block" style="color:#009feb">

                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-form-item">
                <label class="layui-form-label">状态：</label>
                {{if states == 0}}
                <div class="layui-input-block">
                    已下单
                </div>
                {{else if states == 1}}
                <div class="layui-input-block" style="color:#ffd80f">
                    已发运
                </div>
                {{else if states == 2}}
                <div class="layui-input-block" style="color:red">
                    待收款
                </div>
                {{else if states == 3}}
                <div class="layui-input-block" style="color:#009feb">
                    已收款
                </div>
                {{else if states == -1}}
                <div class="layui-input-block">
                    暂存
                </div>
                {{/if}}
            </div>
        </div>

        <div class="layui-col-md12" style="margin-bottom: 60px; padding-left: 110px;">
            <div class="layui-table-box" style="overflow: inherit">
                <div class="layui-table-body layui-table-main" style="overflow: inherit">
                    <a class="layui-btn layui-btn-sm" onclick="editOrder.addRow()">增行</a>
                    <table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-even="">
                        <thead>
                        <tr>
                            <td style="width: 200px">
                                <div class="layui-table-cell">费用类型
                                </div>
                            </td>
                            <td style="width: 100px">
                                <div class="layui-table-cell">应付金额</div>
                            </td>
                            <td style="width: 100px">
                                <div class="layui-table-cell">实付金额</div>
                            </td>
                            <td style="width: 200px">
                                <div class="layui-table-cell">收款单位</div>
                            </td>
                            <td>
                                <div class="layui-table-cell">备注</div>
                            </td>
                            <td style="width: 50px">
                                <div class="layui-table-cell">操作</div>
                            </td>
                        </tr>
                        </thead>
                        <tbody id="row">
                        <!--<tr>
                            <td>
                                <select name="" class="">
                                    <option>请选择</option>
                                    <option>1</option>
                                </select>
                            </td>
                            <td>
                                <div class="layui-table-cell"></div>
                                <input class="layui-input layui-table-edit money" type="text"/>
                            </td>
                            <td>
                                <div class="layui-table-cell"></div>
                                <input class="layui-input layui-table-edit money" type="text"/>
                            </td>
                            <td>
                                <select name="">
                                    <option>请选择</option>
                                    <option>1</option>
                                </select>
                            </td>
                            <td>
                                <div class="layui-table-cell"></div>
                                <input class="layui-input layui-table-edit" type="text"/>
                            </td>
                            <td>
                                <div class="layui-table-cell"><a href="javascript:void(0)"
                                                                 style="color:#009feb;padding-left: 8px;"
                                                                 lay-event="del">删除</a></div>
                            </td>
                        </tr>-->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md12">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" onclick="editOrder.audit()" lay-submit="" lay-filter="audit">审核</a>
                <a class="layui-btn" onclick="editOrder.editOrder()" lay-submit="" lay-filter="editOrder">保存</a>
                <a onclick="layuiFunciton.closeOpen()" class="layui-btn layui-btn-primary">关闭</a>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script type="text/javascript" src="js/edit.js"></script>
</body>
</html>